//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.restaurant.application.accumulategoods.support;

import com.nebutown.base.data.View;
import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.accumulategoods.AccumulateGoods;
import com.restaurant.application.consumption.support.ConsumptionData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;
import java.util.Map;

public abstract class AbstractAccumulateGoods extends AbstractImpl implements AccumulateGoods {
    private static final Logger logger = LoggerFactory.getLogger(AccumulateGoods.class);
    private static final String privateDataType = "GoodsData";
    public static CmdCapsule CMD_SAVE = new CmdCapsule("save", 0, GoodsData.class);
    public static CmdCapsule CMD_CANCEL = new CmdCapsule("cancel", 1, (Class)null);

    public AbstractAccumulateGoods() {
    }

    public final Class<?> getEffectiveInterface() {
        return AccumulateGoods.class;
    }

    public Logger getLogger() {
        return logger;
    }

    public GoodsData getData() {
        return (GoodsData)this.escort.getData(GoodsData.class);
    }

    public void setData(GoodsData data) {
        this.escort.setData(data);
    }

    public abstract ViewUpdate save(GoodsData var1, int[] var2);

    public abstract ViewUpdate cancel(int[] var1);

    public View newConsumption(String id, ConsumptionData data) {
        return this.buildView(id, AccumulateGoods.class, "consumption", data, (List)null, (Map)null);
    }
}
